<html><head>
        <link href="<?php echo base_url('assets/css/formpindahdatang.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Pindah Datang</title>
    </head>
    <body>
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="8" class="trheader">Laporan Data Pendatang</td>
            </tr>

            <tr>
                <td colspan="8" bordercolor="#666666" class="trheader">Kategori : Per Nomor Induk Kependudukan</td>
            </tr>
            <tr>
                <td colspan="2" bordercolor="#666666" class="cari">&nbsp;</td>
                <td bordercolor="#666666" class="cari">&nbsp;</td>
                <td colspan="10" bordercolor="#666666" class="cari">&nbsp;</td>
            </tr>
            <tr>  
            <form action="<?php echo base_url('pindah_datang/cari_nik'); ?>" method="post">          
                <td colspan="14" bordercolor="#666666" class="cari">Cari NIK : 
                    
                        <label>
                            <input type="text" name="nik_pemohon" id="nik" class="textinput" placeholder="NIK" />
                        </label>                
                    <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                </form>
            </tr>
            <tr>
                <td colspan="8" bordercolor="#666666" class="tampilcari">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="8" bordercolor="#666666" class="tampilcari"><div align="center">Data Pendatang dengan NIK : <?php echo isset($nik_pindah_datang) ? $nik_pindah_datang : ''; ?></div></td>
            </tr>
            <tr>
                <td colspan="14" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="5%"><div align="center"><strong>No.</strong></div></td>
                <td width="17%"><div align="center"><strong>No. Form Pindah</strong></div></td>
                <td width="11%"><div align="center"><strong>No. KK Lama</strong></div></td>
                <td width="11%"><div align="center"><strong>NIK Pemohon</strong></div></td>
                <td width="13%"><div align="center"><strong>Nama Pemohon</strong></div></td>
                <td width="12%"><div align="center"><strong>Tanggal Datang</strong></div></td>
                <td width="18%"><div align="center"><strong>Alamat Asal</strong></div></td>
            </tr>
            <?php
            if (isset($pindah_datang)) {
                $no = 1;
                foreach ($pindah_datang->result() as $data_pindahdatang) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td><div align="center">' . $data_pindahdatang->idpindah_datang . '</div></td>';
                    echo '<td>' . $data_pindahdatang->no_kk_lama . '</td>';
                    echo '<td>' . $data_pindahdatang->nik_pemohon . '</td>';
                    echo '<td>' . $data_pindahdatang->nama_pemohon . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_pindahdatang->tgl_datang) . '</td>';
                    echo '<td>' . $data_pindahdatang->alamat_asal . ' Dusun ' . $data_pindahdatang->dusun . ' RT ' . $data_pindahdatang->rt . ' RW ' . $data_pindahdatang->rw . ' Desa ' . $data_pindahdatang->desa . ' Kec. ' . $data_pindahdatang->kecamatan . ' Kab ' . $data_pindahdatang->kabupaten . ' Prop. ' . $data_pindahdatang->propinsi . '</td>';

                    echo '</tr>';
                }
            }
            ?>

        </table>
        <br>
    </body>
</html>
